package com.erli.exchange.service;

import java.util.List;

import tk.mybatis.mapper.entity.Example;

/**
 * 
 * @Package com.erli.exchange.service
 * @ClassName: BaseService
 * @Description:TODO
 * @Author: LeeHo
 * @Date: 2019年3月3日 下午1:11:50
 * 
 * @param <Record>
 */
public interface BaseService<Record> {

	Integer insert(Record record);
	
	Integer insertSelective(Record record);

	Integer updateById(Record record);

	Integer updateByColumn(String column, Object value, Record record);

	Integer updateByExampleSelective(Record record, Example example);

	Integer deleteById(Integer id);

	Integer deleteByColumn(String column, Object value);

	Integer deleteByRecord(Record record);

	Integer deleteByExample(Example example);

	Record findById(Integer id);

	Record findByColumn(String column, Object value);

	Record findByRecord(Record record);

	List<Record> findListByColumn(String column, Object value);

	List<Record> findListByRecord(Record record);

	List<Record> findListByRecord(Record record, String orderByClause);

	Record findByExample(Example example);

	List<Record> findListByExample(Example example);

	Integer countByRecord(Record record);

	Integer countByExample(Example example);
}
